package com.black.app.service.impl.exercise;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.black.app.domain.exercise.AppExerciseSeries;
import com.black.app.domain.exercise.AppExericseFavorites;
import com.black.app.service.exercise.AppExericseFavoritesService;
import com.black.app.mapper.exercise.AppExericseFavoritesMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author L
 * @description 针对表【app_exericse_favorites】的数据库操作Service实现
 * @createDate 2024-11-06 16:36:56
 */
@Service
public class AppExericseFavoritesServiceImpl extends ServiceImpl<AppExericseFavoritesMapper, AppExericseFavorites>
        implements AppExericseFavoritesService {

    /**
     * 根据用户id查询收藏的锻炼
     *
     * @param userId
     * @return
     */
    @Override
    public List<AppExerciseSeries> findFavoritesByUId(Long userId) {
        return baseMapper.findFavoritesByUId(userId);
//        return List.of();
    }
}




